﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    //任务 NPC，商贩 NPC，铁匠 NPC
    /// <summary>
    /// NPC类型的枚举
    /// </summary>
    enum NPCType
    {
        ///<summary>
        ///任务 NPC
        ///</summary>
        Task,
        ///<summary>
        ///商贩 NPC
        ///</summary>
        Pedlar,
        ///<summary>
        ///铁匠 NPC
        ///</summary>
        Ironsmith
    }
    abstract class NPC
    {
        protected string name;
        protected NPCType type;

        public NPC(string name, NPCType type)
        {
            this.name = name;
            this.type = type;
        }
        public string Name
        {
            get { return this.name; }
            set { this.name = value; }
        }
        public NPCType Type 
        {
            get { return this.type; }
            set { this.type = value; }
        }
        public abstract void Speack();

    }
}
